<?php
	//exit('Sorry Forbidden...');
	$path_parts = pathinfo($_SERVER['PHP_SELF']);
	echo $dirname = $path_parts["dirname"] . "<br />";
	echo $basename = $path_parts["basename"] . "<br />";
	echo $extension = $path_parts["extension"] . "<br />";
	echo "----------------------------------------------<br />";
	echo '$_SERVER[SCRIPT_NAME]    :    '.$_SERVER['SCRIPT_NAME'];
	echo "<br /> <br />";	
	echo '__FILE__  :  '.__FILE__;
	echo "<br /> <br />";
	echo '$_SERVER[HTTP_HOST]    :    '.$_SERVER['HTTP_HOST'];
	echo "<br /> <br />";
	echo '$_SERVER[SERVER_ADDR]    :    '.$_SERVER['SERVER_ADDR'];
	echo "<br /> <br />";
	echo '$_SERVER[REQUEST_URI]    :    '.$_SERVER['REQUEST_URI'];
	echo "<br /> <br />";
	echo '$_SERVER[PHP_SELF]    :    '.$_SERVER['PHP_SELF'];
	echo "<br /> <br />";
	echo '$_SERVER[SERVER_NAME]    :    '.$_SERVER['SERVER_NAME'];
	echo "<br /> <br />";
	echo '$_SERVER[QUERY_STRING]    :    '.$_SERVER['QUERY_STRING'];
	echo "<br /> <br />";
	echo '$_SERVER[DOCUMENT_ROOT]    :    '.$_SERVER['DOCUMENT_ROOT'];
	echo "<br /> <br />";
	echo '$_SERVER[SCRIPT_FILENAME]    :    '.$_SERVER['SCRIPT_FILENAME'];
	echo "<br /> <br />";
	echo '$_SERVER[GATEWAY_INTERFACE]    :    '.$_SERVER['GATEWAY_INTERFACE'];
	echo "<br /> <br />";	
	echo '$_SERVER[SERVER_SOFTWARE]    :    '.$_SERVER['SERVER_SOFTWARE'];
	echo "<br /> <br />";	
	echo '$_SERVER[SERVER_PROTOCOL]    :    '.$_SERVER['SERVER_PROTOCOL'];
	echo "<br /> <br />";		
	echo '$_SERVER[REQUEST_METHOD]    :    '.$_SERVER['REQUEST_METHOD'];
	echo "<br /> <br />";	
	echo '$_SERVER[REQUEST_TIME]    :    '.$_SERVER['REQUEST_TIME'];
	echo "<br /> <br />";				
	echo '$_SERVER[HTTP_ACCEPT_ENCODING]    :    '.$_SERVER['HTTP_ACCEPT_ENCODING'];
	echo "<br /> <br />";	
	echo '$_SERVER[HTTP_ACCEPT_LANGUAGE]    :    '.$_SERVER['HTTP_ACCEPT_LANGUAGE'];
	echo "<br /> <br />";	
	echo '$_SERVER[HTTP_CONNECTION]    :    '.$_SERVER['HTTP_CONNECTION'];
	echo "<br /> <br />";		
	echo '$_SERVER[HTTP_USER_AGENT]    :    '.$_SERVER['HTTP_USER_AGENT'];
	echo "<br /> <br />";
	echo '$_SERVER[REMOTE_ADDR]    :    '.$_SERVER['REMOTE_ADDR'];
	echo "<br /> <br />";	
	echo '$_SERVER[REMOTE_PORT]    :    '.$_SERVER['REMOTE_PORT'];
	echo "<br /> <br />";	
	echo '$_SERVER[SCRIPT_FILENAME]    :    '.$_SERVER['SCRIPT_FILENAME'];
	echo "<br /> <br />";		
	echo '$_SERVER[SERVER_ADMIN]    :    '.$_SERVER['SERVER_ADMIN'];
	echo "<br /> <br />";	
	echo '$_SERVER[SERVER_PORT]    :    '.$_SERVER['SERVER_PORT'];
	echo "<br /> <br />";	
	echo '$_SERVER[SERVER_SIGNATURE]    :    '.$_SERVER['SERVER_SIGNATURE'];
	echo "<br /> <br />";	
	echo '$_SERVER[PATH_TRANSLATED]    :    '.$_SERVER['PATH_TRANSLATED'];
	echo "<br /> <br />";	
	echo '$_SERVER[HTTP_ACCEPT_CHARSET]    :    '.$_SERVER['HTTP_ACCEPT_CHARSET'];
	echo "<br /> <br />";	
	echo '$_SERVER[HTTP_ACCEPT]    :    '.$_SERVER['HTTP_ACCEPT'];
	echo "<br /> <br />";		
	echo '$_SERVER[HTTPS]    :    '.$_SERVER['HTTPS'];
	echo "<br /> <br />";	
	echo '$_SERVER[HTTP_REFERER]    :    '.$_SERVER['HTTP_REFERER'];
	echo "<br /> <br />";		
	echo '$_SERVER[REMOTE_HOST]    :    '.$_SERVER['REMOTE_HOST'];
	echo "<br /> <br />";		
	echo '$_SERVER[PHP_AUTH_DIGEST]    :    '.$_SERVER['PHP_AUTH_DIGEST'];
	echo "<br /> <br />";	
	echo '$_SERVER[PHP_AUTH_USER]    :    '.$_SERVER['PHP_AUTH_USER'];
	echo "<br /> <br />";	
	echo '$_SERVER[PHP_AUTH_PW]    :    '.$_SERVER['PHP_AUTH_PW'];
	echo "<br /> <br />";	
	echo '$_SERVER[AUTH_TYPE]    :    '.$_SERVER['AUTH_TYPE'];
	echo "<br /> <br />";
	echo '$_SERVER[PATH_INFO]    :    '.$_SERVER['PATH_INFO'];
	echo "<br /> <br />";		
	//print_r(parse_url($url));
?>